<?php


//Route::group(['namespace'=>'App\Http\Controllers\Api\Index','prefix'=>'api','middleware'=>'WebAuth'],function(){
    Route::group(['namespace'=>'App\Http\Controllers\Api\Index','prefix'=>'api'],function(){

        //添加血糖
        Route::any('index/add_glu', 'GlucoseController@addGlucose');
        //添加胰岛素
        Route::any('index/add_insulin', 'GlucoseController@addInsulin');
        //用户日志
        Route::any('index/log_list', 'GlucoseController@userGlucoseLog');
        //日统计
        Route::any('index/day_log', 'GlucoseController@dayLog');
        //周统计和月统计
        Route::any('index/month_log', 'GlucoseController@monthLog');
        //药品列表
        Route::any('index/insulin_list', 'GlucoseController@insulinList');
        //合并数据
        Route::any('index/mergeInsulin', 'GlucoseController@mergeInsulin');
        //用户设置用餐时间范围
        Route::any('index/meals_time', 'GlucoseController@mealsTime');
        //首页数据
        Route::any('index/index_data', 'GlucoseController@indexData');
        //设备数据
        Route::any('index/decive_data', 'GlucoseController@deviceData');
        //添加设备数据
        Route::any('index/device_update', 'GlucoseController@deviceUpdate');
        //查看异常报警
        Route::any('index/read_warning', 'GlucoseController@readWarning');

        //用户建议报告
        Route::any('index/user_prescription', 'GlucoseController@userPrescription');
        //vip建议报告获取
        Route::any('index/get_prescription', 'GlucoseController@getPrescription');

        //用户用药记录列表
        Route::any('index/user_medicinal', 'GlucoseController@userMedicinal');


    });

